package com.kunsan.compose.net

import java.io.Serializable

class ResultData<T>(
    var code: Int,//返回状态码
    var msg: String?, //返回类型说明
    var desc: String?, //返回具体描述
    var data: T?, //返回具体数据类
) : Serializable {

    fun isSuccess(): Boolean {
        return code == NetworkConstants.API_RESPONSE_SUCCESS_CODE
    }
}